package com.dy.system.service;

import com.dy.system.domain.FreshMedicalMachine;
import com.dy.system.domain.MedicalMachine;

import java.util.List;

/**
 * 设备信息Service接口
 *
 * @author ruoyi
 * @date 2022-08-16
 */
public interface IFreshMedicalMachineService {
    /**
     * 查询设备信息
     *
     * @param id 设备信息主键
     * @return 设备信息
     */
    public FreshMedicalMachine selectFreshMedicalMachineById(Long id);

    /**
     * 查询设备信息列表
     *
     * @param freshMedicalMachine 设备信息
     * @return 设备信息集合
     */
    public List<FreshMedicalMachine> selectFreshMedicalMachineList(FreshMedicalMachine freshMedicalMachine);

    /**
     * 新增设备信息
     *
     * @param freshMedicalMachine 设备信息
     * @return 结果
     */
    public int insertFreshMedicalMachine(FreshMedicalMachine freshMedicalMachine);

    /**
     * 修改设备信息
     *
     * @param freshMedicalMachine 设备信息
     * @return 结果
     */
    public int updateFreshMedicalMachine(FreshMedicalMachine freshMedicalMachine);

    /**
     * 批量删除设备信息
     *
     * @param ids 需要删除的设备信息主键集合
     * @return 结果
     */
    public int deleteFreshMedicalMachineByIds(Long[] ids);

    /**
     * 删除设备信息信息
     *
     * @param id 设备信息主键
     * @return 结果
     */
    public int deleteFreshMedicalMachineById(Long id);

    FreshMedicalMachine selectMedicalMachineByCode(String code);

    Integer findMachineCount(Long id);

    FreshMedicalMachine selectFreshMedicalMachineByInstitutionId(Long id);

}
